@use './mixins.scss' as *;

@import './variables.css';

@import './reset.css';

@import './element-plus.css';

@import './element-plus.scss';

@import './map.scss';

@font-face {
  font-family: 'PingFang SC';
  src: url('/src/fonts/PINGFANG-JIANZHONGHEITI-2.TTF');
  font-weight: normal;
  font-style: normal;
}

#app {
  height: 100%;
}

html {
  height: 100%;
}

body {
  height: 100%;
  background-color: #f0f2f5;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: 'PingFang SC', Georgia, serif;
  @extend %scrollbar;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a,
a:focus,
a:hover {
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.xy-container {
  --at-apply: p-20 bg-white rounded-5 flex flex-col overflow-auto;

  > .el-table {
    flex: 1;
  }
}

.xy-map-container {
  --at-apply: p-5 bg-white rounded-5 flex flex-col overflow-auto;
  box-shadow: 0px 0px 20px 1px rgba(0, 0, 0, 0.06);

  > #map-container {
    flex: 1;
    position: relative;
  }
}

.xy-container--split {
  --at-apply: flex flex-col overflow-auto;

  > .xy-container__header,
  > .xy-container__content {
    &:first-child {
      padding-top: 20px;
    }
  }
  > .xy-container__header {
    --at-apply: pl-20 pr-20 bg-white rounded-5 flex flex-col;
  }
  > .xy-container__content {
    --at-apply: pl-20 pr-20 bg-white rounded-5 flex flex-col overflow-auto;
    > .el-table {
      flex: 1;
      --at-apply: mb-20 mt-20;
      @extend %el-header-bg-color;
    }
  }
}

.black-form {
  background: var(--xy-body-color);
  border-radius: 2px;
  padding: 15px 0px 0px 15px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.red-click {
  cursor: pointer;
  color: var(--xy-primary-color) !important;
  &:hover {
    color: var(--xy-primary-light-color) !important;
  }
}

.is-reference {
  color: rgba(255, 120, 128, 0.5);
  white-space: nowrap;
  cursor: pointer;
}
.is-reference:hover {
  color: var(--el-color-primary);
}

.el-table.no-border td.el-table__cell,
.el-table.no-border th.el-table__cell.is-leaf {
  border: none;
}
.menu-item--active {
  background-color: var(--xy-primary-light-color);
  color: var(--xy-primary-color);
}